CPPFLAGS := -g -Werror -Wall -O0 -Wno-unused-but-set-variable -std=c++11 
LDFLAGS := -lmemcached -libverbs -pthread

inc := types.h tools.h memtool.h pm.h
src := main.cpp net.cpp pm.cpp server.cpp

.PHONY: clean all

server: $(src) $(inc)
	g++ -o $@ $^ $(LDFLAGS) $(CPPFLAGS)

clean:
	rm -rf *.o server